home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000043_Robin.Fairbairns@cl.cam.ac.uk_Sat Nov 5 13:17:07 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  3KB

  1. Received: from swan.cl.cam.ac.uk by cs.umb.edu with SMTP id AA08491
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sat, 5 Nov 1994 08:17:47 -0500
  3. Received: from dorceus.cl.cam.ac.uk (user rf (rfc931)) by swan.cl.cam.ac.uk 
  4.           with SMTP (PP-6.5) to cl; Sat, 5 Nov 1994 13:17:15 +0000
  5. To: gchen@suntzu.psg.datap.ca (Ganping Chen)
  6. Cc: tex-k@cs.umb.edu
  7. Subject: Re: WHY "! LaTeX Error: Missing \begin{document}."
  8. In-Reply-To: Your message of "Thu, 03 Nov 1994 08:40:04 +0700." <9411031540.AA19232@suntzu.psg.datap.ca>
  9. Date: Sat, 05 Nov 1994 13:17:07 +0000
  10. From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>
  11. Message-Id: <"swan.cl.cam.:097670:941105131718"@cl.cam.ac.uk>
  12.  
  13. You write:
  14.  
  15. >     I have a thesis document in latex format. It works perfect
  16. > when I use LaTeX209. But when I try to use LaTeX2e, It complains
  17. > "Missing \begin{document}" even though it is definitely there.  What
  18. > else I should do to make it work?  By the way, for some simple latex
  19. > file, it works fine.
  20.  
  21. "Missing \begin{document}" means your text has tried to start
  22. typesetting before the \begin{document}, not (necessarily) that it's
  23. not there at all.
  24.  
  25. >     Following is the output of latex2e.
  26. > This is TeX, Version 3.1415 (C version 6.1)
  27. > (thesis.tex
  28. > LaTeX2e <1994/06/01>
  29. > (/home/gchen/tex/lib/texmf/tex/latex2e/base/latex209.def
  30. > Entering LaTeX 2.09 compatibility mode.
  31. > (/home/gchen/tex/lib/texmf/tex/latex2e/base/tracefnt.sty)
  32. > (/home/gchen/tex/lib/texmf/tex/latex2e/base/latexsym.sty))
  33. > (/home/gchen/tex/lib/texmf/tex/latex2e/base/thesis.sty
  34. > Document Style 'thesis'. Released Dec 1988
  35. > (/home/gchen/tex/lib/texmf/tex/latex2e/base/doublespace.sty)
  36. > (/home/gchen/tex/lib/texmf/tex/latex2e/base/thes12.sty
  37. >  
  38. > ! LaTeX Error: Missing \begin{document}.
  39. > See the LaTeX manual or LaTeX Companion for explanation.
  40. > Type  H <return>  for immediate help.
  41. >  ...                                              
  42. >                                                   
  43. > l.32 \normalsize
  44. >                 
  45. > ?
  46.  
  47. This is an instance of incompatibility with compatibility mode; while
  48. compatibility mode is pretty good, there are places where it comes
  49. unstuck; your thesis style appears to have bumped into one of them.
  50.  
  51. One very common source of this problem is styles that assume NFSS1 is
  52. present.  You may be able to solve this by having your thesis style
  53. load newlfont.sty before it loads thes12.sty; but I don't hold out an
  54. awful lot of hope.  The real solution to the problem is to upgrade the
  55. style to a 2e class (and your documents to operate in native mode);
  56. this may not be entirely trivial.
  57.  
  58. You can often get more hints about tricky problems like this by
  59. reinstating the old verbose style of LaTeX error messages.  Do this by
  60. inserting
  61.  
  62.   \setcounter{errorcontextlines}{999}
  63.  
  64. before \documentstyle (this *only* works with 2e).
  65.  
  66. Best of luck....
  67.  
  68. Robin
  69.  
  70. Robin (Campaign for the Third Programme) Fairbairns  rf@cl.cam.ac.uk
  71. U of Cambridge Computer Lab, Pembroke St, Cambridge  CB2 3QG, UK
  72. Private page: http://www.cl.cam.ac.uk/users/rf/robin.html